package myJs.myPkg

import myJs.myPkg.jquery.JQuery
import myJs.myPkg.jsext._

import scala.scalajs.js

import scala.language.implicitConversions
import scala.scalajs.js.JSConverters._


/**
 * Created by yz on 2019/3/14
 */
@js.native
trait DistpickerJQuery extends js.Object {

  def distpicker(options: DistpickerOptions):JQuery= scalajs.js.native


}

object DistpickerOptions extends DistpickerOptionsBuilder(noOpts)

class DistpickerOptionsBuilder(val dict: OptMap) extends JSOptionBuilder[DistpickerOptions, DistpickerOptionsBuilder](
  new DistpickerOptionsBuilder(_)) {

  def province(v: String) = jsOpt("province", v)

  def city(v: String) = jsOpt("city", v)

}

trait DistpickerOptions extends js.Object {

}

trait DistpickerJQueryImplicits {
  implicit def implicitDistpickerJQuery(jq: JQuery): DistpickerJQuery = {
    jq.asInstanceOf[DistpickerJQuery]
  }
}
